package org.dromara.app.domain.bo;

import org.dromara.app.domain.SkMembershipOrder;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 开会员订单业务对象 sk_membership_order
 *
 * @author Evacuation
 * @date 2024-08-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SkMembershipOrder.class, reverseConvertGenerate = false)
public class SkMembershipOrderBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 开通类型
     */
    @NotNull(message = "开通类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long vipType;

    /**
     * 价格
     */
    @NotNull(message = "价格不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long price;

    /**
     * 到期时间
     */
    @NotNull(message = "到期时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date vipLastTime;

    /**
     * 订单号
     */
    @NotBlank(message = "订单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orderSn;

    /**
     * 城市
     */
    @NotBlank(message = "城市不能为空", groups = { AddGroup.class, EditGroup.class })
    private String city;

    /**
     * 支付方式
     */
    @NotNull(message = "支付方式不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long payType;

    /**
     * 支付时间
     */
    @NotBlank(message = "支付时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payTime;

    /**
     * 支付订单
     */
    @NotBlank(message = "支付订单不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payOrderSn;

    /**
     * 支付状态
     */
    @NotNull(message = "支付状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long payState;


}
